/*
 * ClientService.java
 *
 * Created on June 20, 2009, 5:38 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fhv.itb.mst2955.client;

import com.google.gwt.user.client.rpc.RemoteService;
import fhv.itb.mst2955.client.model.ContactProxy;
import java.util.Collection;
import java.util.Vector;


/**
 * The remote service for dealing with contacts.
 */
public interface ContactService extends RemoteService{

    /**
     * Gets a list of contacts from the server's database.
     *
     * @return
     * The list of contacts from the server's database.
     */
    public Vector<ContactProxy> getContacts();


    public Integer deleteContact(int id);
    public void newContact(ContactProxy contact);
    public void putContacts(Vector<ContactProxy> contacts);
}
